package com.koron.operation.startlog.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value="com-koron-operation-startlog-bean-StartLogBean")
@Data
public class StartLogAddDto implements Serializable {


    /**
    * 设备ID
    */
    @ApiModelProperty(value="设备ID")
    private String equipmentId;

    /**
    * 操作时间
    */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty(value="操作时间")
    private Date operateTime;

    /**
    * 数据字典(dispatch_operate_type):START_UP开机、SHUT_DOWN停机、START_FAIL不成功
BREAKDOWN故障停机、ACCIDENT事故跳机
    */
    @ApiModelProperty(value="数据字典(dispatch_operate_type):START_UP开机、SHUT_DOWN停机、START_FAIL不成功,BREAKDOWN故障停机、ACCIDENT事故跳机")
    private String operateType;

    /**
    * 原因
    */
    @ApiModelProperty(value="原因")
    private String content;

    /**
    * 是否计划内  0计划外、1计划内
    */
    @ApiModelProperty(value="是否计划内  0计划外、1计划内")
    private Integer inPlan;


    private static final long serialVersionUID = 1L;
}